package com.springboot.mybatis.service.threaddemo;

/**
 * @author sunyt31481
 * @date 2020/8/6 10:38
 * @description 两种方式同时创建线程，结果是只出现“Thread结果”
 */
public class BothRunnnableThread {
    public static void main(String[] args) {
        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("Runnable");
            }
        }){
            @Override
            public void run() {
                System.out.println("Thread");
            }
        }.start();
    }
}
